#ifndef FILE_H
#define FILE_H

#include <QObject>
#include <QList>
#include <QString>
#include <QImage>

class file : public QObject
{
    Q_OBJECT
public:
    explicit file(QObject *parent = nullptr);
    ~file();

    void setFilePath(QString filePath, int flag);
    Q_INVOKABLE QString getFilePath(int flag);
    Q_INVOKABLE bool openImageFile(int flag);
    Q_INVOKABLE QString saveImageFile();

signals:
    void filePathChanged(int flag);

private:
    QString m_filePath[8] = {NULL};

};

#endif // FILE_H
